﻿using System;
using System.Collections;
using System.Collections.Generic;
using Unity.Mathematics;
using UnityEditor;
using UnityEngine;

public class BattleSceneMeleeLine : MonoBehaviour
{
    public float distance;
    public float angle;
    
    private void OnDrawGizmosSelected()
    {
        var center = transform.position + Quaternion.AngleAxis(angle,Vector3.up) * Vector3.forward * distance;
        Gizmos.DrawLine(center,Quaternion.AngleAxis(angle + 90,Vector3.up) * Vector3.forward * 20 + center);
        Gizmos.DrawLine(center,Quaternion.AngleAxis(angle - 90,Vector3.up) * Vector3.forward * 20 + center);
    }
}
